package 相同的树;

public class Test2 {
    public static void main(String[] args) {
        Solution2 solution = new Solution2();
        TreeNode p = new TreeNode(1);

        TreeNode q = new TreeNode(1);
        q.right = new TreeNode(2);

        boolean result = solution.isSameTree(p, q);
        System.out.println("The trees are the same: " + result);
    }
}
